'''
PySubsonic
Copyright (c) 2010 Gary Hughes

A unofficial client for the Subsonic (www.subsonic.org)
web-based music streamer.
'''

from PyQt4 import QtGui
from ui.mainwindow import MainWindow
import os


def startmain():
    '''
    Start the app.
    '''
    app = QtGui.QApplication(sys.argv)
    
    QtGui.QApplication.setStyle(QtGui.QStyleFactory.create("CleanLooks"))
    QtGui.QApplication.setPalette(QtGui.QApplication.style().standardPalette())
    
    QtGui.QApplication.setApplicationName('PySubsonic')
    QtGui.QApplication.setApplicationVersion('0.1')
    QtGui.QApplication.setOrganizationName('overThere.co.uk')
    
    print 'AppName: %s' % QtGui.QApplication.applicationName()
    print 'AppVersion: %s' % QtGui.QApplication.applicationVersion()
    print 'Company Name: %s' % QtGui.QApplication.organizationName()
    
    mainwindow = MainWindow()
    mainwindow.show()
    
    sys.exit(app.exec_())


if __name__ == "__main__":
    import sys
    startmain()        

